<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>

        //数组的结构赋值
        var [a,b]=["xu","hui"];
        console.log(a);
        //对象的结构赋值
        var {c,d}={c:"xu",d:"hui"}
        console.log(d);

        [a,b]=[b,a]
        console.log(a);
        let {length:chang}="xudenghui"
        console.log(chang);
        let {e:f}={e:"x",m:"h"}
        console.log(e);
    </script>
</body>
</html>